<template>
	<view>
		<view class="main">
			<view class="kuang" v-for="(item,index) in menu">
				<image class="image1" src="../../static/users/head.png" mode=""></image>
				<view class="zi1">
					{{item.name}}
					<image class="image2" src="../../static/users/man.png" mode=""></image>
				</view>
				
				<view class="zi2">
					{{item.pick}}
				</view>
				<view class="guanzhu" @click="item.like=true" v-if="!item.like">关注</view>
				<view class="quguan" @click="item.like=false" v-if="item.like">取消关注</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				menu: [{
						like: true,
						name: "山海未眠",
						pick: "你知道 就算大雨让整座城市颠倒..."
					},
					{
						like: true,
						name: "爱的故事下集",
						pick: "你知道 就算大雨让整座城市颠倒..."
					}, {
						like: true,
						name: "山海未眠",
						pick: "你知道 就算大雨让整座城市颠倒..."
					}, {
						like: true,
						name: "山海未眠",
						pick: "你知道 就算大雨让整座城市颠倒..."
					}, {
						like: true,
						name: "山海未眠",
						pick: "你知道 就算大雨让整座城市颠倒..."
					}
				]
			}
		},
		methods: {

		},
		onLoad() {

		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2F4FA;
	}

	.main {
		margin: 30rpx;
		width: 690rpx;
		height: 1420rpx;
		background: #FFFFFF;
		border-radius: 40rpx;
		overflow: hidden;
		position: relative;

		.kuang {
			margin: 40rpx 0 0 30rpx;
			width: 690rpx;
			height: 130rpx;
			position: relative;

			.image1 {
				width: 130rpx;
				height: 130rpx;
			}

			
			.zi1 {
				position: absolute;
				left: 155rpx;
				top: 40rpx;
				font-size: 30rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #181818;
				.image2{
					position: absolute;
					width: 40rpx;
					height: 40rpx;
				}
				
			}

			.zi2 {
				position: absolute;
				top: 87rpx;
				left: 155rpx;
				width: 290rpx;
				font-size: 20rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #666666;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
			}

			.guanzhu {
				position: absolute;
				top: 43rpx;
				right: 60rpx;
				text-align: center;
				line-height: 66rpx;
				width: 160rpx;
				height: 66rpx;
				background: #181818;
				border-radius: 33rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #FFFFFF;
			}

			.quguan {
				position: absolute;
				top: 43rpx;
				right: 60rpx;
				text-align: center;
				line-height: 66rpx;
				width: 160rpx;
				height: 66rpx;
				background: #B5B3B2;
				border-radius: 33rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #FFFFFF;
			}

		}
	}
</style>
